package org.dev.service_login

import android.content.Context
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer

/**
 * Author WenPing
 * CreateTime 2021/8/14.
 * Description:接口用于暴露给其他组件来获取登录状态
 */
interface ILoginService {

    fun login(context: Context?, observer: Observer<Boolean>)

    fun isLogin(): Boolean

    fun getUserProfile(
        lifecycleOwner: LifecycleOwner,
        observer: Observer<UserProfile?>,
        onlyCache: Boolean
    )

    fun getBoardingPass(): String?

}